# lst = ["马化腾", "马化腾", "王建忠", "张建忠", "张建忠", "张雪峰", "张雪峰"]
#
# s = {i for i in lst}    # 集合推倒式
# print(s)


# lst = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4]

# 使用集合推导式创建一个集合，自动去除重复元素
# 集合推导式具有去重效果
# unique_elements = {x for x in lst}
#
# print(unique_elements)  # 输出：{1, 2, 3, 4}
